package co.msk8.client.command.action;

import co.msk8.client.command.Action;
import co.msk8.client.command.result.SumResult;

public class SumAction implements Action<SumResult> {
	
	private int a;
	
	private int b;
	
	public SumAction() {
		this.a = 0;
		this.b = 0;
	}
	
	public SumAction(int a, int b) {

		this.a = a;
		this.b = b;
	}
	
	public int getA() {
		return a;
	}

	public int getB() {
		return b;
	}

	
	@Override
	public boolean equals(Object obj) {
		
		if (obj instanceof SumAction) {
			
			SumAction toCompare = (SumAction) obj;
			if (toCompare.getA() == this.getA() && toCompare.getB() == this.getB()) {
				return true;
			}
		} 
		return false;
	}
}
